package nix.mall.item.pojo;

import nix.mall.pojo.Item;

public class ItemExt extends Item {

	public ItemExt(Item item) {
		// 初始化属性
	    this.setId(item.getId());
	    this.setTitle(item.getTitle());
	    this.setSellPoint(item.getSellPoint());
	    this.setPrice(item.getPrice());
	    this.setNum(item.getNum());
	    this.setBarcode(item.getBarcode());
	    this.setImage(item.getImage());
	    this.setCid(item.getCid());
	    this.setStatus(item.getStatus());
	    this.setCreated(item.getCreated());
	    this.setUpdated(item.getUpdated());
	}

	public String[] getImages() {
		if (this.getImage() != null && !"".equals(this.getImage())) {
			String[] images = this.getImage().split(",");
			return images;
		}
		return null;
	}
}
